package HomeWork;/*


1111



*/

import com.sun.deploy.trace.Trace;

public class ManageSystem {

    public String name;
    public   String travelspeed;
    public ManageSystem(){
    }
    public ManageSystem (String name){
        this.name=name;
    }

    public void Command(Car car, Lights lights,Road road,TrafficPolice trafficPolice){

        System.out.println(trafficPolice.name+"指挥"+"让"+car.Size+"司机在"+lights.lightcolor+"时靠"+road.position+"等待绿灯");
        //
    }
    public static void main(String[] args) {
        TrafficPolice trafficPolice = new TrafficPolice("吴警官");
        Car car = new Car("大货车");
        Road road = new Road("右边");
        Lights lights = new Lights("红灯");
        ManageSystem manageSystem=new ManageSystem("交通管理系统");
       manageSystem.Command(car, lights, road,trafficPolice);


    }

    }
